/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Clases2;

/**
 *
 * @author luis
 */
public class Jugador {

    /**
     *
     * @return
     */
    public boolean lanzar() {
        int lan1, lan2, lan3;
        Dado dado = new Dado();
        lan1 = dado.lanzar();
        lan2 = dado.lanzar();
        lan3 = dado.lanzar();
        System.out.printf("%d, %d, %d", lan1, lan2, lan3);
        return lan1 == lan2 && lan2 == lan3;
    }

    /**
     *
     * @param args
     */
    public static void main(String[] args) {
        Jugador jugador1 = new Jugador();
        if (jugador1.lanzar()) {
            System.out.println("Has ganado");
        } else {
            System.out.println("No has ganado");
        }
    }
}
